//
//  CYDateFormatter.m
//  Edu_iOS2018
//
//  Created by yanyan on 2018/1/16.
//  Copyright © 2018年 yanyan. All rights reserved.
//

#import "CYDateFormatter.h"

@implementation CYDateFormatter
+ (NSDateFormatter *)sharedDateFormatter{
    static NSDateFormatter *manager;

    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [[NSDateFormatter alloc]init];
        manager.dateFormat = @"yyyy-MM-dd HH:mm";
    });
    return manager;
}
@end
